(if (string= "" comment-end) "^" (regexp-quote comment-end)))
(if (and (null ispell-check-comments) comment-start)
(regexp-quote comment-start))
- (ispell-begin-skip-region ispell-skip-region-alist)
+ ;; If they set ispell-skip-region-alist to nil, mapconcat
+ ;; will produce an empty string, which will then match
+ ;; anything without moving point, something
+ ;; ispell-skip-region doesn't expect. Perhaps we should be
+ ;; more defensive and delq "" above as well, in addition to
+ ;; deleting nil elements.
+ (if ispell-skip-region-alist
+ (ispell-begin-skip-region ispell-skip-region-alist))
(ispell--make-filename-or-URL-re)))
"\\|"))